package database;

import java.sql.Connection;
import java.sql.SQLException;


import database.dao.SongBaseDao;

import util.JdbcUtils;
import util.MyFactory;

public class SongBaseDBService {

	public boolean updateSingTimes(String songId ) throws SQLException{
		Connection conn = null;
		try{
			conn = MyFactory.context.getBean("JdbcUtils",JdbcUtils.class).getConnection();
			return MyFactory.context.getBean("SongBaseDao", SongBaseDao.class).updateSingTimes(songId, conn);
		}finally{
			MyFactory.context.getBean("JdbcUtils",JdbcUtils.class).releaseConnection(conn);
		}
	}
}
